package com.e2edour.web.controller;

import com.e2edour.facade.WeiXinManagerFacade;
import com.e2edour.facade.abc.CommonResponse;
import com.e2edour.facade.req.WeiXinCheckSignatureReq;
import com.e2edour.facade.req.WeiXinMsgReq;
import com.e2edour.runtime.properties.AppContextConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 *
 * @author King
 * @since 2017/1/22
 */

@Controller
@RequestMapping("test")
public class TestController {

    @Autowired
    private WeiXinManagerFacade weiXinManagerFacade;
    @RequestMapping(method = {RequestMethod.GET})
    @ResponseBody
    public String checkSignature() {
        WeiXinMsgReq req = new WeiXinMsgReq();
        req.setContent("新闻");
        weiXinManagerFacade.handlerMsg(req);
        return "";
    }
}
